package org.example.mone.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName deployinfo
 */
@TableName(value ="deployinfo")
public class Deployinfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private String policy;

    /**
     * 
     */
    private String creator;

    /**
     * 
     */
    private Long createTime;

    /**
     * 
     */
    private Integer deployed;

    /**
     * 
     */
    private String configFile;

    /**
     * 
     */
    private String upgradeRecord;

    /**
     * 
     */
    private String param;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 
     */
    public String getPolicy() {
        return policy;
    }

    /**
     * 
     */
    public void setPolicy(String policy) {
        this.policy = policy;
    }

    /**
     * 
     */
    public String getCreator() {
        return creator;
    }

    /**
     * 
     */
    public void setCreator(String creator) {
        this.creator = creator;
    }

    /**
     * 
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public Integer getDeployed() {
        return deployed;
    }

    /**
     * 
     */
    public void setDeployed(Integer deployed) {
        this.deployed = deployed;
    }

    /**
     * 
     */
    public String getConfigFile() {
        return configFile;
    }

    /**
     * 
     */
    public void setConfigFile(String configFile) {
        this.configFile = configFile;
    }

    /**
     * 
     */
    public String getUpgradeRecord() {
        return upgradeRecord;
    }

    /**
     * 
     */
    public void setUpgradeRecord(String upgradeRecord) {
        this.upgradeRecord = upgradeRecord;
    }

    /**
     * 
     */
    public String getParam() {
        return param;
    }

    /**
     * 
     */
    public void setParam(String param) {
        this.param = param;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Deployinfo other = (Deployinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getPolicy() == null ? other.getPolicy() == null : this.getPolicy().equals(other.getPolicy()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getDeployed() == null ? other.getDeployed() == null : this.getDeployed().equals(other.getDeployed()))
            && (this.getConfigFile() == null ? other.getConfigFile() == null : this.getConfigFile().equals(other.getConfigFile()))
            && (this.getUpgradeRecord() == null ? other.getUpgradeRecord() == null : this.getUpgradeRecord().equals(other.getUpgradeRecord()))
            && (this.getParam() == null ? other.getParam() == null : this.getParam().equals(other.getParam()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getPolicy() == null) ? 0 : getPolicy().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getDeployed() == null) ? 0 : getDeployed().hashCode());
        result = prime * result + ((getConfigFile() == null) ? 0 : getConfigFile().hashCode());
        result = prime * result + ((getUpgradeRecord() == null) ? 0 : getUpgradeRecord().hashCode());
        result = prime * result + ((getParam() == null) ? 0 : getParam().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", status=").append(status);
        sb.append(", policy=").append(policy);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", deployed=").append(deployed);
        sb.append(", configFile=").append(configFile);
        sb.append(", upgradeRecord=").append(upgradeRecord);
        sb.append(", param=").append(param);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}